﻿using System;
namespace Maticsoft.Model
{
	/// <summary>
	/// T_Talk:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class T_Talk
	{
		public T_Talk()
		{}
		#region Model
        private string _id = System.Guid.NewGuid().ToString();
		private string _username;
		private string _doctorname;
		private string _talk;
		private DateTime _time=DateTime.Now;
		private string _talker;

        private string time_str;
        public string Time_Str
        {
            set
            {
                time_str = value;
                _time = DateTime.ParseExact(time_str, "MM-dd HH:mm:ss", null);
            }
            get
            {
                time_str = _time.ToString("MM-dd HH:mm:ss");
                return time_str;
            }
        }

		/// <summary>
		/// 
		/// </summary>
		public string Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserName
		{
			set{ _username=value;}
			get{return _username;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DoctorName
		{
			set{ _doctorname=value;}
			get{return _doctorname;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Talk
		{
			set{ _talk=value;}
			get{return _talk;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime Time
		{
			set{ _time=value;}
			get{return _time;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Talker
		{
			set{ _talker=value;}
			get{return _talker;}
		}
		#endregion Model

	}
}

